[PATCH] Use array::iter
authorlzutao <taolzu@gmail.com>
Wed, 30 Oct 2019 07:51:17 +0000 (14:51 +0700)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 23 May 2020 21:38:56 +0000 (23:38 +0200)
See clippy::into_iter lint and https://github.com/rust-lang/rust/pull/65819

Gbp-Pq: Name use-array-iter.patch

build.rs

index d1292bcf483af86395694103e470b0068ad9b389..d36826b48618e0fd76eb48348bafa71fe7208c6a 100644 (file)
--- a/build.rs
+++ b/build.rs
@@ -421,7 +421,7 @@ fn build_c_code(target: &Target, pregenerated: PathBuf, out_dir: &Path) {
 
     // XXX: Ideally, ring-test would only be built for `cargo test`, but Cargo
     // can't do that yet.
-    libs.into_iter()
+    libs.iter()
         .for_each(|&(lib_name, srcs, additional_srcs)| {
             build_library(
                 &target,